package com.usf.jprovider.schema.type;

import com.usf.jprovider.object.env.Environment;
import com.usf.jprovider.object.type.JInteger;
import com.usf.jprovider.object.type.JType;

public final class DBInteger extends AbstractDBType{

	public DBInteger() {
		super();
	}

	@Override
	public String formatSQL(Environment env, String value) throws Exception {
		return env.getConnector().IntegerFormater(value);
	}
	
	@Override
	public JType<?> toJType(String value) throws Exception {
		return new JInteger(value, format);
	}

}
